-- GENERATED SPELL FOR [Groddoc Thunderer] --


function spell0_5262(pUnit, Event) --@Thunderclap,Self--
pUnit:FullCastSpellOnTarget(8078,pUnit)
pUnit:RegisterEvent('Sorts_5262', 10319, 1)
end

function Sorts_5262(pUnit, Event)
local choix_sorts_5262 = math.random(0, 0)
if choix_sorts_5262 == 0 then
pUnit:RegisterEvent('spell0_5262', 1, 1)
end
end

function mob5262_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5262', math.random(1500, 3000), 1)
end

function mob5262_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5262_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5262_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5262, 1, 'mob5262_Action')
RegisterUnitEvent(5262, 2, 'mob5262_Leave')
RegisterUnitEvent(5262, 3, 'mob5262_Kill')
RegisterUnitEvent(5262, 4, 'mob5262_Die')
